First of all, the value of the front-end modularity: The reference module is described here in detail and can be viewed on its own.A. Summarize the following advantages:(1) Resolving naming conflicts(2) Cumbersome file dependencies(3) version management of the module(4) Improved maintainability(5) Front-end performance
Bluebird and jquery, and initialize the CO function.Bluebird.coroutine the function into a function that returns promise, but simply returning this function does not execute, I need to execute and return directly to this promiseThen I use the CO to execute a generator, first waiting for the DOM to load, the promise state becomes resolve, and then executes the contents of the main function.You don't want to use jquery here, you can use it directly.Window.addeventlistener (' Domcontentready ', fu
browsers.
IE6-10 will have some black magic, take advantage of the browser single-threaded execution of the characteristics of the page to get all the script tag, to determine its readystate interactive , the script is Document.currentscript
Using Error.stack, get the file call stack to analyze to get currentscript
It is convenient to write anonymous modules, but it will bring some trouble.For example, it cannot be packaged directly into a file because it depends on the file name o
PHP expression. If the Track_error attribute is activated, any error information generated by the expression is stored in the variable $php_errormsg, which will be overwritten every time an error occurs.[note] The error control prefix @ does not mask parsing error information, it cannot be placed before the definition of a function or class, nor can it be used for conditional structures such as if and foreachPHP $a = 1; Echo $a; // 1 $b ; Echo $b; // No error ?>Increment/decrement
The job title is as follows:--------------------------------------------------Bit operators are not very familiar with this problem, just fill it up.Decimal to Binary method: Divide the decimal number by 2 to take the first remainder, and then the quotient is divided by 2 continuously, taking the second and third ... Remainder until the quotient is 0 o'clock, then the first, second ... From right to left, high 0.Binary to decimal method: Starting from the rightmost number of the binary number, f
Note: I recently sorted out the hard drive and found several notes I recorded when I learned Web Front-end technology. I think it is quite valuable, so I plan to sort them out one after another.
Well, before talking about it, I would like to share with you a piece of the past to remind myself and everyone to grasp the knowledge points accurately. That was one year I went to my internship. When I took a com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.